package com.xnewtech.xplatform.swan.auth.api;

import com.xnewtech.xplatform.swan.auth.api.model.LoginUser;
import com.xnewtech.xplatform.swan.auth.api.model.TokenReq;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Auth服务对外接口
 *
 * @author xnew
 * @date 2018-02-07 9:57
 */
@RequestMapping("/authService")
public interface AuthService {

    /**
     * 通过token获取用户信息
     *
     * @author xnew
     * @Date 2018/1/12 16:32
     */
    @RequestMapping(value = "/getLoginUserByToken", method = RequestMethod.POST)
    LoginUser getLoginUserByToken(@RequestBody TokenReq tokenReq);

}
